#include "stm32f10x.h"                  // Device header
#include "OLED.h"
#include "Delay.h"

//#define num 15;

uint8_t Img[] = {
	0xFF,0x01,0xE1,0x11,0x49,0x25,0x45,0x05,0x45,0x25,0x49,0x11,0xE1,0x01,0xFF,
	0x7F,0x40,0x43,0x44,0x48,0x51,0x52,0x52,0x52,0x51,0x48,0x44,0x43,0x40,0x7F};

int main(void)
{
	/*模块初始化*/
	OLED_Init();		//OLED初始化
	OLED_Clear();
	
//	for(u8 i = 0 ; i < 64 - 45 ; i ++)
//	{
//		OLED_Clear();
//		
//		OLED_ShowImage(i * 2, i, 15, 15, Img);
//		OLED_ShowString(i * 2, i + 17, "HelloWord", 6);
//		OLED_ShowChinese(i * 2, i + 26, "你好世界");
//		
//		OLED_UpData();
//		
//		Delay_ms(20);
//	}

	
//	for(u8 j = 0 ; j < 64 ; j ++)
//	{
//		for(u8 i = 0 ; i < 128 ; i ++)
//		{
//			OLED_DisplayBuf[j][i]=0xFF;
//		}
//	}
	
//		OLED_UpData();
		
//		Delay_ms(200);
		
		OLED_ClearArea(2, 4, 15, 15);
		OLED_DrawPoint(3, 7);
		
		if(OLED_GetPoint(4, 7))
		{
			OLED_ShowString(8, 8, "Yes", 6);
		}
		else
		{
			OLED_ShowString(8, 8, "No", 6);
		}
		OLED_UpData();
	while(1)
	{
		
		
	}	
}
